#!/usr/bin/python
# -*- coding: utf-8 -*-

import os
import sys

path = os.sep.join([os.getcwd(), 'pylot'])
if path not in sys.path :
  sys.path.append(path)

if __name__ == u'__main__' :

  try :
    from _pylot.pylot_module_launcher import launch_pylot_modules
  except ImportError :
    print 'You must be in pylot source directory to launch pylot-launcher'
  else :
    print sys.argv
    if len(sys.argv)>2:
      guiflag = False
    else:
      guiflag=True
    app = launch_pylot_modules(sys.argv, guiflag)
